package thread.synchronization ;

import thread.synchronization.TestSnychronization.MyThread1;
import thread.synchronization.TestSnychronization.MyThread2;

public class ThreadMain  {
	public static void main(String[] args) {
	TestSnychronization ts = new TestSnychronization();
	MyThread1 t1 = ts.new MyThread1(ts);//using subclass of TestSnychronization (super class )
	//so using  in main class for creating object of subclass use use the super (TestSynchronization)
	// class object variable  ========>like this ----> MyThread1 t1 = ts.new MyThread1(ts);
	MyThread2 t2 = ts.new MyThread2(ts);
		t1.start();
		t2.start();
	}

}
